package com.zlsy.springbootdemo.classinit;

import com.zlsy.springbootdemo.classloader.MyClass;

/**
 * @author zhouliang
 * @date 2021/01/13
 **/
public class MyClassA {
    private static MyClassA myClassA = new MyClassA();
    private static int a = 0;
    private static int b;

    private MyClassA() {
        a++;
        b++;
    }

    public static MyClassA getInstance() {
        return myClassA;
    }

    public int getA() {
        return a;
    }

    public int getB() {
        return b;
    }
}
